<%-- 
    Document   : metadata
    Created on : 18-nov-2013, 12.00.00
    Author     : Ilo
--%>

<meta charset="utf-8">
<meta name="viewport" content="initial-scale = 1.0, maximum-scale = 1.0, user-scalable = no, width = device-width">

<!--[if lt IE 9]><script src="https://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css" media="screen">
<link rel="stylesheet" href="css/style.responsive.css" media="all">
<link rel="stylesheet" href="css/le-frog/jquery.ui.min.css">
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Ubuntu&amp;subset=latin">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">

<style>
    .evento-content .evento-postcontent-0 .layout-item-0 { 
        margin-bottom: 10px;  
    }
    .evento-content .evento-postcontent-0 .layout-item-1 { 
        border-spacing: 10px 0px; 
        border-collapse: separate;  
    }
    .evento-content .evento-postcontent-0 .layout-item-2 { 
        border-top-style: solid;
        border-right-style: solid;
        border-bottom-style: solid;
        border-left-style: solid;
        border-top-width: 1px;
        border-right-width: 1px;
        border-bottom-width: 1px;
        border-left-width: 1px;
        border-top-color: #8C8C8C;
        border-right-color: #8C8C8C;
        border-bottom-color: #8C8C8C;
        border-left-color: #8C8C8C; 
        color: #9CFF99; 
        background: #616161; 
        padding-right: 5px;
        padding-left: 5px; 
        border-radius: 15px;  
    }
    .ie7 .evento-post .evento-layout-cell {
        border: none !important; 
        padding: 0 !important; 
    }
    .ie6 .evento-post .evento-layout-cell {
        border: none !important; 
        padding: 0 !important; 
    }
</style>

<script src="js/jquery.js"></script>
<script src="js/jquery.ui.min.js"></script>
<script src="js/jquery.sha1.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=false&amp;language=it"></script>
<script src="js/gmap3.min.js"></script>
<!--<script src="js/script.js"></script>       <!-- DA ERRORI SUL LOGIN (SERVE: stile top menu)-->
<script src="js/script.responsive.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/jquery.html2.js"></script>
<script type="text/javascript" src="js/jquery.raty.js"></script>
<script>
    /* Global Variables */
    DATE_PICKER_DEFAULT_SETTINGS = {
                                    changeMonth: true,
                                    changeYear: true,
                                    dateFormat: "dd/mm/yy",
                                    firstDay: 1,
                                    dayNamesMin: ["Do", "Lu", "Ma", "Me", "Gi", "Ve", "Sa"],
                                    monthNamesShort: ["Gen", "Feb", "Mar", "Apr", "Mag", "Giu", "Lug", "Ago", "Set", "Ott", "Nov", "Dic"],
                                    showAnim: "blind"
                                   };
    /* /Global Variables */
    
    $(document).ready(function() {
        $('#frmLogin #modlgn_login').click(function(e) {
            e.preventDefault();
            
            $('#frmLogin #modlgn_pwd').val($.sha1($('#frmLogin #modlgn_passwd').val()));

            $('#frmLogin').submit();
        });
        
        /* TYPE EVENT*/
        $.getJSON("Controller?type=getType", function(data) {
            var items ="";
            $.each(data, function(key, val) {
                //items.push("<option value='" + val.id + "'>" + val.label + "</option>");
                items+=" <a href='Controller?type=getTypedEvents&eventsType="+val.id+"'>"+val.label+"</a><br> ";                
            });
           // alert(items);
           $('#eventCategory').html(items);
        });
         /* /TYPE EVENT*/
        
        /*SEARCH*/
        $( "#searchBox" ).autocomplete({
            source: "Controller?type=getAllEvents",
            select: function(event, ui) {
                $("#searchBox").val(ui.item.label);
                return false;
            }                        
        });
        /* /SEARCH*/
    });
</script>

<!-- Facebook JavaScript SDK -->
    <script src="js/facebookLib.js"></script>
    <script src="js/facebookAssets.js"></script>    <!-- Must be after js/facebookLib.js -->
<!-- /Facebook JavaScript SDK -->

<!-- Google+ Script -->
    <script src="js/googleLib.js"></script>
    <script src="js/googleAssets.js"></script>    <!-- Must be after js/googleLib.js -->
<!-- /Google+ Script -->
